
package jrain.fw.core.business;

import java.io.Serializable;

/**
 * <pre>
 * 作者：3244924214@qq.com 
 * 描述：  业务服务常量
 * </pre>
 */
public class BusinessConst implements Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * 业务执行成功
	 */
	public static final int RES_CODE_SUCCESS = 200;
	/**
	 * 业务执行失败，系统未知异常
	 */
	public static final int RES_CODE_ERROR_UNKOWN = 500;

	/**
	 * 业务执行失败，权限异常
	 */
	public static final int RES_CODE_ERROR_BUIS_AUTH = 403;
	/**
	 * 业务执行失败，权限异常
	 */
	public static final int RES_CODE_ERROR_BUIS_NOTFIND = 404;
	
	/**
	 * 请求参数类型
	 */
	public static final String REQ_PARAM_TYPE = "paramType";

	/**
	 * 请求参数
	 */
	public static final String REQ_PARAMS = "params";
	/**
	 * 请求参数类型
	 */
	public static final String REQ_PARAM_PRE = "pre_";

	/**
	 * 扩展数据-用户ID
	 */
	public static final String EXT_USER_ID = "userId";

	/**
	 * 扩展数据－租户ID
	 */
	public static final String EXT_TENANT_ID = "tenantId";
 
	/**
	 * 扩展数据－TOKEN ID 
	 */
	public static final String EXT_TOKEN_ID = "tokenId";

	/**
	 * 扩展数据-ContentType
	 */
	public static final String EXT_CONTENT_TYPE = "Content-Type";
	/**
	 * 扩展数据－原始HTTP请求
	 */
	public static final String EXT_REQUEST = "_request";

	/**
	 * 扩展数据－原始RESPONSE响应
	 */
	public static final String EXT_RESPONSE = "_response";
	/**
	 * 扩展数据－文件数据
	 */
	public static final String EXT_FILES = "_files";
 
	/**
	 * 数据-ID
	 */
	public static final String DATA_ID = "id";

	/**
	 * 数据-租户
	 */
	public static final String DATA_TENANT = "tenant";

	/**
	 * 数据-TOKEN
	 */
	public static final String DATA_TOKEN = "token";
	/**
	 * 数据-ContentType
	 */
	public static final String DATA_CONTENT_TYPE = "Content-Type";	
	/**
	 * 反馈数据-类型
	 */
	public static final String RS_CONTENT_TYPE = "Content-Type";
	/**
	 * 反馈数据-
	 */
	public static final String RS_CONTENT_STEAM = "Content-Steam";
	
 }
